import 'package:flutter/material.dart';

class UGrowColors {
  static Map<String, Color> _colorMap = new Map();

  static void initColor() {
    _colorMap["#dff1fd"] = Color.fromARGB(0xff, 0xdf, 0xf1, 0xfd);
    _colorMap["#84dce6"] = Color.fromARGB(0xff, 0x84, 0xdc, 0xe6);
    _colorMap["#2c1a70"] = Color.fromARGB(0xff, 0x2c, 0x1a, 0x70);
    _colorMap["#5d5d5d"] = Color.fromARGB(0xff, 0x5d, 0x5d, 0x5d);
    _colorMap["#333333"] = Color.fromARGB(0xff, 0x33, 0x33, 0x33);
    _colorMap["#999999"] = Color.fromARGB(0xff, 0x99, 0x99, 0x99);
    _colorMap["#cccccc"] = Color.fromARGB(0xff, 0xcc, 0xcc, 0xcc);
    _colorMap["#eeeeee"] = Color.fromARGB(0xff, 0xee, 0xee, 0xee);
  }

  static Color getColor(String colorName) {
    Color color = _colorMap[colorName];
    if (color != null) {
      return color;
    } else {
      return Colors.black;
    }
  }
}
